package com.hicar.vo;

import com.hicar.domain.User;

public class SessionUser {
	private int id;

	private String mobile;

	private int sex;

	private String username;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void assignUser(User user) {
		this.setId(user.getId());
		this.setUsername(user.getUsername());
	}
}
